 <?php
	print("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?> \n");
	print("<Result>\n");
	if(!isset($_GET["DID"]) || !isset($_GET["KID"]) || !isset($_GET["caller"]))
	{
		print("</Result>\n");
		return;
	}
	$db = mysql_connect("localhost","root","root");
    mysql_select_db("brainway");
    $query = "delete from datasource_knowledge where DID=".$_GET["DID"]." and KID=".$_GET["KID"];
    $result = mysql_query($query);
    if($result==null)       //name has existed
    {
        print("</Result>\n");
		return;
    }
    print("<DID>".$_GET["DID"]."</DID> \n");
    print("<KID>".$_GET["KID"]."</KID> \n");  
    print("<caller>".$_GET["caller"]."</caller> \n");
    print("</Result> \n");
?>